import App from './App'
// import '@/utils/interceptor.js';//引入拦截

import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import TuniaoUI from '@/uni_modules/tuniao-ui'
Vue.use(TuniaoUI)
import store from './store'


// 注册请求方法
import * as api from '@/api/api.js'
Vue.prototype.$api = api

// 文件上传
import uploadFile from '@/utils/uploadFile.js'
Vue.prototype.$uploadFile = uploadFile

let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif